package model;

import java.util.Vector;

public class Operation extends Class_element {
	protected Vector<parameter> parameters;

	public Operation() {
		super();
		parameters = new Vector<parameter>();
	}

	Operation(String nameIn, String typeIn, char visIn) {
		super(nameIn, typeIn, visIn);
	}

	public void add_parameter(String name, String type) {
		parameter toAdd = new parameter();
		toAdd.set_name(name);
		toAdd.set_type(type);
		parameters.add(toAdd);
		return;
	}

	public void remove_parameter(int index) {
		parameters.remove(index);
		return;
	}

	public void clear() {
		parameters.clear();
	}
}
